package com.woniu.p2p.service;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.UserBank;
import com.woniu.p2p.vo.DrawVo;

import java.util.Date;
import java.util.List;

public interface MoneyManageService {
    /*获取账户余额*/
    Long findAmountById(int userid);
    /*通过userid查询支付密码*/
    String findPaypwdByUserid(int userid);
    /*更新账户余额*/
    int drawnow(Long drawmoney, int userid);
    /*获取银行卡下拉列表数据*/
    List<UserBank> getbanklist(int userid);
    /*根据userid和银行卡id获取银行名*/
    String findBanknameBycardIdandUserid(String cardId, int userid);
    /*添加提现记录*/
    void addDrawRecoed(Date date, Long drawmoney, String cardId, String bankName, String status, String context, String remark,int userid);
    /*查询提现记录*/
    PageInfo<DrawVo> findalldrawsByuserid(int userid);
    /*条件查询提现记录*/
    PageInfo<DrawVo> finddrawbycons(String drawcontext, Date starttime, Date endtime, Integer start, int size, int userid);
    /*删除提现记录并进行条件查询*/
    PageInfo<DrawVo> deletedrawbyid(Integer drawId, String drawcontext, Date starttime, Date endtime, Integer start, int size, int userid);
}
